<?php htmlTemplate('admin_header_frame.php');?>
<div class="title">视频列表
<a  href="<?php echo ZSM_WWW_HOST.'admin.php/admin/video/set/'?>" class="title_button">添加视频</a>
</div>
<table width="100%" cellspacing="1" cellpadding="3" id="listTable">
  <tbody>
  <tr>
	<td colspan="8">
    
	<form action="">	
	<select name="match" id="match" >
	    <?php 
	    if (Http::get('match')){
	        echo '<option value="'.Http::get('match').'">'.Http::get('match').'</option>';
	    }
	    ?>
		<option value="0">全部赛事</option>
		<?php 
		foreach ($matchs as $k=>$v):
		
		    if (Http::get('match')==$v['name']) continue;
		?>
		<option value="<?php echo $v['name'];?>"><?php echo $v['name'];?></option>
		<?php 
		endforeach;
		?>
	</select>
	日期:			
	<input 
		id="stimeline" 
		name="stimeline" 
		type="text" 
		style="width:85px;"
		value='<?php 
		if (Http::get('stimeline')){
			echo Http::get('stimeline');
		}
		?>' class='date demo_time'  
		onClick="WdatePicker({skin:'whyGreen',dateFmt:'yyyy-MM-dd'})"
		>-<input 
		id="etimeline" 
		name="etimeline" 
		type="text" 
		style="width:85px;"
		value='<?php 
		if (Http::get('etimeline')){
			echo Http::get('etimeline');
		}
		?>' class='date demo_time'  
		onClick="WdatePicker({skin:'whyGreen',dateFmt:'yyyy-MM-dd'})"
		>
	<select name="star" id="star" >
	    <?php 
	    if (Http::get('star')){
	        echo '<option value="'.Http::get('star').'">'.Http::get('star').'</option>';
	    }
	    ?>
		<option value="0">明星</option>
		<?php 
		foreach ($stars as $k=>$v):
		
		    if (Http::get('star')==$v) continue;
		?>
		<option value="<?php echo $v;?>"><?php echo $v;?></option>
		<?php 
		endforeach;
		?>
	</select>
	VS
	<select name="tostar" id="tostar" >
	    <?php 
	    if (Http::get('tostar')){
	        echo '<option value="'.Http::get('tostar').'">'.Http::get('tostar').'</option>';
	    }
	    ?>
		<option value="0">明星</option>
		<?php 
		foreach ($stars as $k=>$v):
		
		    if (Http::get('tostar')==$v) continue;
		?>
		<option value="<?php echo $v;?>"><?php echo $v;?></option>
		<?php 
		endforeach;
		?>
	</select>

	<input type="text" name="title" id="title" value="<?php echo Http::get('title');?>" style="width:200px;"/>
	
	
	<input type="submit" value="搜 索" class="submit"> 
	
	</form>
	</td>
  </tr>
  
  <tr>
  	<th align="center">
  	    <a href="javascript:;" id="order_id" onclick="orderBy('id','DESC')">id</a>  	
  	</th>  
    <th align="center">明星</th>   
    <th align="center">对方</th>    
    <th align="center">赛事</th>
    <th align="center">标题</th>
    <th align="center"><a href="javascript:;" id="order_createTime" onclick="orderBy('createTime','DESC')">创建时间</a></th>
    <th align="center"><a href="javascript:;" id="order_updateTime" onclick="orderBy('updateTime','DESC')">修改时间</a></th>
    
    <th align="center">操作</th>
  </tr>
	<?php 
	foreach ($rs['list'] as $k=>$v):
	?>
   <tr>
    <td align="left"> <?php echo $v['id'];?></td>    
    <td align="center">   <?php echo $v['star'];?>
    </td>   
     <td align="center">   <?php echo $v['tostar'];?>
    </td> 
     <td align="center">   <?php echo $v['match'];?>
    </td> 
     <td align="center">   <?php echo $v['title'];?>
    </td> 
    
     <td align="center">   <?php echo $v['createTime'];?>
    </td> 
     <td align="center">   <?php echo $v['updateTime'];?>
    </td>      
    <td align="center">  
      <a title="编辑" href="<?php echo ZSM_WWW_HOST.'admin.php/admin/video/set/id/'.$v['id'];?>">编辑</a> |
      <a title="移除" onclick="getUrl('<?php echo ZSM_WWW_HOST.'admin.php/admin/video/set/do/del/id/'.$v['id'];?>',1,1)" href="javascript:;">移除</a>
    </td>   
  </tr>
  <?php endforeach;?>
  
 
 
  </tbody>
</table>
<?php htmlTemplate('admin_footer_frame.php');?>
